home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
hash.zip
/
LIST.1
< prev
next >
Wrap
Text File
|
1993-01-04
|
614b
|
14 lines
50 '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 ' ~
60 'Subroutine to hash a four character string ~
65 ' ~
70 'Enter with the string to be hashed in NA$ ~
75 ' ~
80 'On exit the hash value is in H ~
85 ' ~
90 '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
95 '
100 H = ( CVI(MID$(NA$,1,2)) XOR CVI(MID$(NA$,3,2)) ) MOD 61
110 RETURN